#ifndef TESTWIDGETPLUGIN
#define TESTWIDGETPLUGIN

#include <QObject>
#include <QDialog>
#include <QWidget>

#include "widgetplugininterface.h"

namespace Ui {
class TestWidgetPlugin;
}

class TestWidgetPlugin : public QWidget, WidgetPluginInterface
{
    Q_OBJECT
    Q_INTERFACES(WidgetPluginInterface)


public:
    TestWidgetPlugin(QWidget *parent = 0);
    ~TestWidgetPlugin();
    virtual QWidget* createWidget(QWidget* parent = 0);
    virtual void load(MainWindow* mv);
    virtual QString getCustomMenuName();
    virtual QString getCustomActionName();
    virtual QString getCustomActionPos();
    virtual QWidget* getWidget();

protected:
    void closeEvent(QCloseEvent *event);

public slots:
    void deleteing();

private:
    QString cusMenuName;
    bool opened;
    Ui::TestWidgetPlugin *ui;
};

#endif // TESTWIDGETPLUGIN
